package cn.itsource.basic.mapper;

import cn.itsource.basic.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {
    int add(T t);
    int update(T t);
    int del(Long id);
    int batchRemove(List<Long> id);
    T findById(Long id);
    List<T> findAll();
    List<T> findByCondions(BaseQuery query);
}
